package com.hgyc.mom.common.converter;

public class ImageConverterFactory {
    public static ImageConverter getConverter(String fileExtension) {
        //暂时不支持word文件
        switch (fileExtension.toLowerCase()) {
            case "pdf":
                return new PdfImageConverter();
            case "pptx":
                return new PptxImageConverter();
            default:
                throw new UnsupportedOperationException("不支持的文件类型: " + fileExtension);
        }
    }
}
